import { createRouter, createWebHashHistory } from 'vue-router';

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'play',
      meta: { title: '启动', icon: 'Play' },
      component: () => import('@/views/play/index.vue'),
    },
    {
      path: '/questions',
      name: 'questions',
      meta: { title: '题库', icon: 'Questions' },
      component: () => import('@/views/questions/index.vue'),
    },
  ],
});

export default router;
